﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMaster.Mobile.Master"
    Inherits="System.Web.Mvc.ViewPage<Microhard.Plat.CRM.Customers.Models.SaleLeadModel>" %>

<%@ Import Namespace="Microhard.Permission.Extension" %>
<%@ Import Namespace="Microhard.Framework.MVCHelper" %>
<%@ Import Namespace="Micrhard.FMCG.Server.Models" %>
<%@ Import Namespace="Microhard.Framework.MVCHelper.Mobile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div data-role="navbar">
        <ul>
            <li><a href="#" class="ui-btn-active ui-state-persist">关注有奖</a></li>
        </ul>
    </div>
    <%if (!ViewData.ContainsKey("CustomerID"))
      { 
    %>
    <%=ViewData["Msg"]%>
    <% 
      }
      else
      {
    %>
    <%using (Html.BeginForm("SaveCreate", "SaleLead", FormMethod.Post, new { id = "groupform" }))
      {
    %>
    <%=Html.Hidden("WeixinToken", ViewData["WeixinToken"])%>
    <%=Html.Hidden("WeixinName", ViewData["WeixinName"])%>
    <%=Html.Hidden("CustomerID", ViewData["CustomerID"])%>
    <%=Html.Hidden("CurrentCondition", "mobileAdd")%>
    <%--    <%=Html.Hidden("CurrentLoginUserName", Html.GetCurrentUserInfoFromSession().UserName)%>--%>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_Textbox("Customer.Name", "客户姓名(必填，邮寄奖品需要)",Model.Customer.Name)%>
        <%=Html.ValidationMessageFor(m => m.Customer.Name)%>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_Textbox("Customer.Cellphone", "联系方式(必填，邮寄奖品需要)", Model.Customer.Cellphone)%>
        <%=Html.ValidationMessageFor(m => m.Customer.Cellphone)%>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_Textbox("Customer.Address", "地址(必填，邮寄奖品需要)", Model.Customer.Address)%>
        <%=Html.ValidationMessageFor(m => m.Customer.Address)%>
    </div>
    <div data-role="fieldcontain">
        <label for="GetPrdInfoResource">
            获取产品信息渠道(必填)</label>
        <%Html.RenderPartial("DataDicSelectListMobile", new Microhard.WebUI.Models.AttrOfDictionary { SelectCtrID = "GetPrdInfoResource", Type = "GetPrdInfoResource", SelectedValue = Model.GetPrdInfoResource });%>
    </div>
    <div data-role="fieldcontain">
        <label for="ReqTimeLine">
            购买意向(必填)</label>
        <%Html.RenderPartial("DataDicSelectListMobile", new Microhard.WebUI.Models.AttrOfDictionary { SelectCtrID = "ReqTimeLine", Type = "ReqTimeLine", SelectedValue = Model.ReqTimeLine });%>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_TextArea("Description", "购买或不想购买的原因(必填)", "10", "10", Model.Description)%>
        <%=Html.ValidationMessageFor(m => m.Description)%>
    </div>
    <input type="submit" value="提交" data-theme="c" id="btnSubmit" name="btnSubmit" />
    <%} %>
    <%} %>
</asp:Content>
